﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForeProgram/Shared/UserInfo.master"
    AutoEventWireup="true" CodeFile="shopOrderCenter.aspx.cs" Inherits="ForeProgram_shopOrderCenter" %>
    <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="shop_main_r">
        <div class="index_content_top">
            <!--订单查询 -->
            <div class="search">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="title" colspan="4">
                            订单查询
                        </td>
                    </tr>
                    <tr>
                        <td width="29%">

                            产品名称：
                             <asp:TextBox ID="txtProductName" Columns="20" onblur="this.style.borderColor='#dcdcdc'" class="inp1" onfocus="this.style.borderColor='#fc9938'" runat="server"></asp:TextBox>
                           
                        </td>
                        <td width="26%">
                            产品编号：
                            <asp:TextBox ID="txtproductNo" Columns="16" onblur="this.style.borderColor='#dcdcdc'" class="inp1" onfocus="this.style.borderColor='#fc9938'" runat="server"></asp:TextBox>
                        </td>
                        <td width="25%">
                            订单号：
                            <asp:TextBox ID="txtorderNo" Columns="16" onblur="this.style.borderColor='#dcdcdc'" class="inp1" onfocus="this.style.borderColor='#fc9938'" runat="server"></asp:TextBox>
                        </td>
                        <td width="20%">
                            <asp:LinkButton ID="lbSearch" CssClass="help_bt1" style="Cursor:hand" 
                                runat="server" onclick="lbSearch_Click"><span>搜 索</span></asp:LinkButton>
                            <%--<a href="javascript:submitOrderForm('')" class="help_bt1"><span>搜 索</span></a>--%>
                        </td>
                    </tr>
                </table>
            </div>
            <!--订单查询 结束-->
            <!--订单列表 -->
            <div class="contents">
                <ul>
                    <li id="allOrder" class="bton" runat="server"><asp:LinkButton ID="lbOrder" runat="server" onclick="lbOrder_Click">全部订单</asp:LinkButton></li>
                    <li id="newOrder" runat="server"><asp:LinkButton ID="lbNew" runat="server" onclick="lbNew_Click">待付款的订单</asp:LinkButton></li>
                    <li id="cancelOrder" runat="server"><asp:LinkButton ID="lbCancel" runat="server"  onclick="lbCancel_Click">已取消的订单</asp:LinkButton></li>
                </ul>
                <asp:GridView ID="gvTable" runat="server" CellPadding="0" CellSpacing="0" 
                    GridLines="None" BorderWidth="0"  Width="100%" AutoGenerateColumns="False" 
                    DataKeyNames="orderid" onrowcommand="gvTable_RowCommand" 
                    onrowdatabound="gvTable_RowDataBound">
                            <Columns>
                               <asp:BoundField DataField="orderid" HeaderText="订单号">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="accountname" HeaderText="收货人">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="totalfee"  DataFormatString="{0:0.00}" HeaderText="订单金额">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="付款方式">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="statusName" HeaderText="订单状态">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField   DataField="orderdate" HeaderText="下单时间"  DataFormatString="{0:yyyy-MM-dd}">
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作" HeaderStyle-CssClass="gray9">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbBank" CommandName="Bank" runat="server">立即支付</asp:LinkButton>
                                        <asp:LinkButton ID="lbView" CommandName="View" runat="server">查看</asp:LinkButton>
                                        <asp:LinkButton ID="lbCancel" CommandName="Canc" runat="server">取消订单</asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="width01" Width="393px" />
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="tit" />
                   </asp:GridView>
                   <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" ShowCustomInfoSection="Left"
                PageSize="20" CurrentPageButtonClass="cpb" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                CustomInfoClass="" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
                ShowInputBox="Never" CustomInfoTextAlign="Right" InvalidPageIndexErrorMessage="页索引不是有效的数值！"
                LayoutType="Table" NavigationToolTipTextFormatString="{0}" PageIndexBoxType="TextBox"
                PageIndexOutOfRangeErrorMessage="页索引超出范围！" ShowPageIndexBox="Auto">
                </webdiyer:AspNetPager>
            </div>
            <!--订单列表 结束-->
        </div>
    </div>
</asp:Content>
